package com.zjp;

import com.mymule.config.RibbonConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableEurekaClient//注册中心客户端
@EnableFeignClients("com.zjp.service")//扫描的包
@RibbonClient(name = "MICROCLOUD-PROVIDER-PRODUCT", configuration = RibbonConfig.class)
public class ConsumerHystrixApp {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerHystrixApp.class, args);
    }

}
